package com.netwit.common.prop;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

// 优先读取 application.properties
@ConfigurationProperties(prefix = "spring")
@Component
public class DataSourceProperties {
    private Map<String, Object> datasource = new HashMap<>();

    public void setDatasource(Map<String, Object> datasources) {
        this.datasource = datasources;
    }

    public Map<String, Object> getDatasource() {
        return datasource;
    }
}
